import request from "@/utils/request";

// 查询会员信息
export function getMemberInfo(data) {
  return request({
    url: "user/search",
    method: "post",
    data: data,
  });
}
// 添加会员
export function addMember(data) {
  return request({
    url: "user/add",
    method: "post",
    data: data,
  });
}

// 查询会员设置
export function getMemberSetting() {
  return request({
    url: "backendApi/member/setting",
    method: "get",
  });
}

// 保存会员设置
export function saveSetting(data) {
  return request({
    url: "backendApi/member/saveSetting",
    method: "post",
    data: data,
  });
}

//核销
export function queryOneByWriteOffCode(data) {
  return request({
    url: "user/queryOneByWriteOffCode",
    method: "post",
    data: data,
  });
}

export function updateWriteOffPass(data) {
  return request({
    url: "user/updateWriteOffPass",
    method: "post",
    data: data,
  });
}
